Skip to content

test(cli): stabilize functions dev watcher test#5358

Merged
jgoux merged 3 commits into
developfrom
fix/functions-dev-runtime-test-flake
May 26, 2026
Merged

test(cli): stabilize functions dev watcher test#5358
jgoux merged 3 commits into
developfrom
fix/functions-dev-runtime-test-flake

Conversation

@jgoux
Copy link
Copy Markdown
Contributor

@jgoux jgoux commented May 26, 2026

Summary

Stabilizes the functions dev runtime unit test by replacing the real filesystem watcher and temp file writes with an in-memory fake FileWatcher layer.

The test now waits for the watch stream to register, then emits synthetic file events deterministically. This removes the CI-sensitive race around native @parcel/watcher startup timing.

jgoux and others added 2 commits May 26, 2026 12:51
Use a fake FileWatcher layer so the unit test no longer depends on native filesystem watcher timing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Make the fake FileWatcher setup match the synchronous stateful layer pattern used by nearby tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jgoux jgoux requested a review from a team as a code owner May 26, 2026 10:59
@jgoux jgoux merged commit b5d1500 into develop May 26, 2026
8 checks passed
@jgoux jgoux deleted the fix/functions-dev-runtime-test-flake branch May 26, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants